/**
 * @file mock data
 * @author autoresponse
 */

/* eslint-disable fecs-camelcase */

/**
 * 获取 mock 响应数据
 *
 * @param {string} path 请求路径名
 * @param {Object} queryParam 查询参数信息
 * @param {Object} postParam post 的查询参数信息
 * @return {Object}
 */
module.exports = function (path, queryParam, postParam) {
    return {
        // 可以通过该属性来设置响应的延时，也可以设为值为'0,100'，表示随机 0-100ms 的延时，默认 0
        _timeout: 0,

        // 通过该状态来设置响应的 http 的状态码，默认 200
        _status: 200,

        // 对于要响应的 json 数据可以统一放在该字段里，也可以不使用该字段，直接跟 _xx 属性平级放
        _data: {
            "data": {
                "pageNo": 1,
                "pageSize": 2,
                "list": [{

                    /*
                     "amount": 0,
                     "assetCode": "string",
                     "balance": 0,
                     "businessSubject": "string",
                     "createDate": "2017-05-05T01:42:30.401Z",
                     "id": 0,
                     "uid": 0,
                     "updateDate": "2017-05-05T01:42:30.401Z",
                     "version": 0
                     */

                    "currencyNumber": 1.20000000,
                    "uid": 27894,
                    "updateDate": "2016-11-21 14:37:27",
                    "currencyBalance": 84252.41910000,
                    "coinNumber": 12.00000,
                    "coinBalance": 10192.90000,
                    "id": 38157,
                    "operType": "SELL",
                    "version": 233,
                    "createDate": "2016-11-21 14:37:27"
                }, {
                    "currencyNumber": 0.10000000,
                    "uid": 27894,
                    "updateDate": "2016-11-21 14:37:27",
                    "currencyBalance": 84252.31910000,
                    "coinNumber": 1.00000,
                    "coinBalance": 10192.90000,
                    "id": 38156,
                    "operType": "SELL",
                    "version": 232,
                    "createDate": "2016-11-21 14:37:27"
                }, {
                    "currencyNumber": 0.10000000,
                    "uid": 27894,
                    "updateDate": "2016-11-21 14:37:27",
                    "currencyBalance": 84252.21910000,
                    "coinNumber": 1.00000,
                    "coinBalance": 10192.90000,
                    "id": 38155,
                    "operType": "SELL",
                    "version": 231,
                    "createDate": "2016-11-21 14:37:27"
                }, {
                    "currencyNumber": 0.10000000,
                    "uid": 27894,
                    "updateDate": "2016-11-21 14:37:27",
                    "currencyBalance": 84252.11910000,
                    "coinNumber": 1.00000,
                    "coinBalance": 10192.90000,
                    "id": 38154,
                    "operType": "SELL",
                    "version": 230,
                    "createDate": "2016-11-21 14:37:27"
                }, {
                    "currencyNumber": 0.10000000,
                    "uid": 27894,
                    "updateDate": "2016-11-21 14:37:27",
                    "currencyBalance": 84252.11910000,
                    "coinNumber": 1.00000,
                    "coinBalance": 10192.90000,
                    "id": 38154,
                    "operType": "SELL",
                    "version": 230,
                    "createDate": "2016-11-21 14:37:27"
                }, {
                    "currencyNumber": 0.10000000,
                    "uid": 27894,
                    "updateDate": "2016-11-21 14:37:27",
                    "currencyBalance": 84252.11910000,
                    "coinNumber": 1.00000,
                    "coinBalance": 10192.90000,
                    "id": 38154,
                    "operType": "SELL",
                    "version": 230,
                    "createDate": "2016-11-21 14:37:27"
                }, {
                    "currencyNumber": 0.10000000,
                    "uid": 27894,
                    "updateDate": "2016-11-21 14:37:27",
                    "currencyBalance": 84252.11910000,
                    "coinNumber": 1.00000,
                    "coinBalance": 10192.90000,
                    "id": 38154,
                    "operType": "SELL",
                    "version": 230,
                    "createDate": "2016-11-21 14:37:27"
                }, {
                    "currencyNumber": 0.10000000,
                    "uid": 27894,
                    "updateDate": "2016-11-21 14:37:27",
                    "currencyBalance": 84252.01910000,
                    "coinNumber": 1.00000,
                    "coinBalance": 10192.90000,
                    "id": 38153,
                    "operType": "SELL",
                    "version": 229,
                    "createDate": "2016-11-21 14:37:27"
                }], "pageNum": 3
            }, "msg": "success", "code": "100200"
        }

    };
};

/* eslint-enable fecs-camelcase */
